package org.kl.bf.service.basic;

import org.kl.bf.repository.basic.DBProcessExecuteDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author hqm
 * @CreateTime 2014年8月7日 下午5:21:25
 */
// Spring Bean的标识.
@Component
// 默认将类中的所有public函数纳入事务管理.
@Transactional
public class DBProcessExecuteService {
	private DBProcessExecuteDao dBProcessExecuteDao;

	public String getDocNo(String djdm) {
		return dBProcessExecuteDao.getDocNo(djdm, "-");
	}

	public String getDocNoForMySQL(String djdm) {
		return dBProcessExecuteDao.getDocNoForMySQL(djdm, "-", 4);
	}

	@Autowired
	public void setdBProcessExecuteDao(DBProcessExecuteDao dBProcessExecuteDao) {
		this.dBProcessExecuteDao = dBProcessExecuteDao;
	}
	
	public String CheckAttendanceDate(String startDate,String endDate,String empId) {
		return dBProcessExecuteDao.CheckAttendanceDate(startDate, endDate,empId);
	}
	
	public String CreateAttendanceDate(String startDate,String endDate) {
		return dBProcessExecuteDao.CreateAttendanceDate(startDate, endDate);
	}
	
	public String CreateCleanRisk(String auditProId,String orgId) {
		return dBProcessExecuteDao.CreateCleanRisk(auditProId, orgId);
	}
	
	public String ChangeRiskAssignee(String auditDtlId,String userId) {
		return dBProcessExecuteDao.ChangeRiskAssignee(auditDtlId, userId);
	}

}
